package com.zx.DAO;

import com.zx.entity.Ur;
import com.zx.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.lang.reflect.Array;
import java.util.List;

/**
 * @author 程仟磊
 * @date 2021/7/22
 */
@Repository
public interface UserDao {
    User login(@Param("usaccount")String uaccount, @Param("uspsw")String upsw);
    int register(User user);
    int findAccount(String uaccount);
   int updateUserById(User user);
    List<User> findAllUser();
    void addRoleToUser(@Param("usid") int usid,@Param("rid") int rid);
    void deleteUser(int usid);
    int deleteUr(int usid);
}
